package com.group6.exam.teacher.entity;

import java.util.List;

public class ScorePage {

	private int pageSize = 20;
	private int currentPage = 1;
	private int totalRecords;
	private int totalPages;
	private List<?> list;

	public ScorePage() {

	}

	public ScorePage(int totalRecords, int pageSize) {
		this.totalPages = (int) Math.ceil((totalRecords / (double) pageSize));
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	public int getTotalRecords() {
		return totalRecords;
	}

	public void setTotalRecords(int totalRecords) {
		this.totalRecords = totalRecords;
	}

	public int getTotalPages() {
		return totalPages;
	}

	public void setTotalPages(int totalPages) {
		this.totalPages = totalPages;
	}

	public List<?> getList() {
		return list;
	}

	public void setList(List<?> list) {
		this.list = list;
	}

	@Override
	public String toString() {
		return "ScorePage [pageSize=" + pageSize + ", currentPage="
				+ currentPage + ", totalRecords=" + totalRecords
				+ ", totalPages=" + totalPages + ", list=" + list + "]";
	}

}
